package com.jmx.yp.service.member;

import com.jmx.yp.entity.EmpCategory;
import java.util.*;

/**
 * 
 * 功能描述：
 *		   会员分类业务逻辑
 * @author Jenny
 *
 * Date:2011-2-15 下午04:17:04
 */
public interface ICategoryService {
	
	/**
	 *  新增会员类别
	 * @param category
	 * @throws Exception 当会员名称相同时，抛出HandlerException
	 */
	abstract void addCategory(EmpCategory category) throws Exception;
	
	/**
	 * 根据名称查询类别
	 * @param queryName
	 * @param nowPage
	 * @return
	 * @throws Exception
	 */
	abstract Map queryCategory(String queryName, int nowPage) throws Exception;
	
	/**
	 * 根据名称查询类别
	 * @param queryName
	 * @return 返回包含MAP的LIST
	 * @throws Exception
	 */
	abstract List queryCategory(String queryName) throws Exception; 
	
	/**
	 * 根据ID查询会员类别
	 * @param serialid
	 * @return
	 * @throws Exception
	 */
	abstract EmpCategory getEmpCategory(Long serialid) throws Exception;
	
	/**
	 * 修改会员类别
	 * @param category
	 * @throws Exception
	 */
	abstract void updateCategory(EmpCategory category) throws Exception;
	
	/**
	 * 删除会员类别（支持批量删除）
	 * @param serialid
	 * @throws Exception
	 */
	abstract void deleteCategory(String serialid, String operator) throws Exception;

	/**
	 * 根据类别ID查询关联的会员级别
	 * @param categoryId
	 * @return
	 * @throws Exception
	 */
	abstract List queryGradeByCategoryId(Long categoryId) throws Exception;
}
